GtkHeaderBar: Fix a corner-case in child properties
authorMatthias Clasen <mclasen@redhat.com>
Sun, 2 Nov 2014 22:46:35 +0000 (17:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 2 Nov 2014 22:49:47 +0000 (17:49 -0500)
The child property setting must be prepared to deal with any
child property for any child, even if it doesn't make sense,
like the pack-type for the custom title. This is happening
in glade when undoing a change in the custom-title property.

gtk/gtkheaderbar.c

index 2dd8deeaf668bd4f2ddb3f93a855d9861166718a..540a461df3fc376ea09cbd564288688a33ab3797 100644 (file)
@@ -1650,6 +1650,9 @@ gtk_header_bar_set_child_property (GtkContainer *container,
   Child *child;
 
   l = find_child_link (bar, widget);
+  if (l == NULL)
+    return;
+
   child = l->data;
 
   switch (property_id)